/**
 * Copyright (C), 2001-2031, www.bosssof.com.cn
 * FileName: ObserverFactory.java
 * Author: ckj
 * Date: 2024/7/21 下午9:25
 * Description:
 * 创建观察者的工厂类
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package com.bosssoft.factory;

import com.bosssoft.server.UnprocessedMessageObserver;
import com.bosssoft.server.UserObserver;

import java.util.ArrayList;
import java.util.List;


/**
 * @author ckj
 */
public class ObserverFactory {
    private ObserverFactory() {
    }

    /**
     *
     * @author ckj
     * @date 2024/07/22 上午9:23
     * 获取用户观察者
     * @return java.util.List<com.bosssoft.server.UserObserver>
     */
    public static List<UserObserver> getAllUserObserver(){
        ArrayList<UserObserver> userObservers = new ArrayList<>();
        userObservers.add(new UnprocessedMessageObserver());
        return userObservers;
    }
}